package test.springboot.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import top.lingkang.finalsession.FinalSessionConfig;
import top.lingkang.finalsession.jakarta.FinalSessionFilter;

/**
 * @author lingkang
 * Created by 2024/3/10
 */
@Configuration
@Order(-1995)
public class MySessionConfigDatasource extends FinalSessionFilter {
    @Override
    protected void configurer(FinalSessionConfig config) {
        // 使用redis存储session
        config.setRepository(new FinalRepositoryDatasource());
    }
}
